import { onMounted, reactive } from 'vue'

export default function() {
  const str = reactive({
    title: 'hello'
  })

  onMounted(() => {
    str.title = 'def'
  })

  return {
    str
  }
}